Documentation for class oval

Inherits from 	ornament 

Properties declared in oval 
	center_point 
	fill_color 
	major_radius 
	minor_radius 

Class Methods declared in oval 
	new(center_x, center_y, major_radius, minor_radius) 

Methods declared in oval 
	any 
		center_point 
		fill_color 
		major_radius 
		minor_radius 
		set_center_point(point) 
		set_fill_color(color) 
		set_major_radius(number) 
		set_minor_radius(number) 
	get 
		center_point 
		fill_color 
		major_radius 
		minor_radius 
	set 
		set_center_point(point) 
		set_fill_color(color) 
		set_major_radius(number) 
		set_minor_radius(number) 

Class 
#begin_class
oval 
The class oval is a subclass of the class ornament. 
An oval is defined by its center point, its minor radius and its major radius.
An oval has a fill-color.
#end_class

Properties 

#begin_property
center_point 
Stores the center point of the oval.
#end_property

#begin_property
fill_color 
Stores the color object for the oval's fill-color.
#end_property

#begin_property
major_radius 
Stores the major radius of the oval.
#end_property

#begin_property
minor_radius 
Stores the minor radius of the oval.
#end_property

Methods 

#begin_method
center_point 
Returns the center_point property of the oval.
#end_method

#begin_method
fill_color 
Returns the fill_color property of the oval.
#end_method

#begin_method
major_radius 
Returns the major_radius property of the oval.
#end_method

#begin_method
minor_radius 
Returns the minor_radius property of the oval.
#end_method

#begin_method
set_center_point(point) 
Sets the center_point property to point.
Returns self.
Ex:
o := {oval}:new(0, 0, 30, 30)
c:set_center_point({20 20})
#end_method

#begin_method
set_fill_color(color) 
Sets the fill_color property to color.
Returns self.
Ex:
This example creates a new oval and sets its fill-color to green:
o := {oval}:new(0, 0, 30, 30)
c := {color}:new
c:set_rgba(0, 1, 0, 1)
o:set_fill_color(c)
#end_method

#begin_method
set_major_radius(number) 
Sets the major_radius property to number.
Returns self.
#end_method

#begin_method
set_minor_radius(number) 
Sets the minor_radius property to number.
Returns self.
#end_method

Class Methods 

#begin_class_method
new(center_x, center_y, major_radius, minor_radius) 
Returns a new oval object.
Ex:
{oval}:new(50, 60, 30, 40)
will create a new oval with the center point in (50, 60) and with a major radius of 30 and a minor radius of 40.
#end_class_method